package com.abing.observer.test1.observer.impl;

import com.abing.observer.test1.observer.ObServer;

public class UserObServer implements ObServer {
    private String name;
    public UserObServer(String name) {
        this.name=name;
    }

    @Override
    public void update(String msg) {
        System.out.println(name + ",老师收到微信服务通知的消息:" + msg);
    }
}
